package com.nulldev.util.web.YouTubeExtractor.testing.tests;

import com.nulldev.util.internal.testing.Test;
import com.nulldev.util.web.YouTubeExtractor.frontpage.YTFrontpageExtractor;
import com.nulldev.util.web.YouTubeExtractor.frontpage.YTFrontpageExtractor.Frontpage;

public class FrontpageTests {

	public static class YTEFrontpageTests extends Test<Frontpage> {

		@Override
		public void test() throws Throwable {
			final Frontpage t = YTFrontpageExtractor.get();
			if (t != null && t.videos() != null && !t.videos().isEmpty())
				super.finish(t);
			else
				super.fail(t);
		}

	}
}
